<template>
  <div class="box">1</div>
  <button @click="add">添加</button>
</template>
<script>
import { gsap } from 'gsap'
export default {
  data() {
    return {}
  },
  methods: {
    add() {
      console.log(gsap)
      let obj = {
        rad: 0
      }
      gsap.to('.box', {
        duration: 2,
        rotation: -360,
        ease: 'none',
        onUpdate(res) {}
      })
    }
  },
  mounted() {}
}
</script>
<style type="text/css">
.box {
  width: 100px;
  height: 100px;
  border: 1px solid #000;
}
</style>
